package com.emapp.lccode.base

import com.emapp.lccode.BuildConfig
import com.emapp.lccode.bean.AppArea
import com.emapp.lccode.bean.Nai
import com.emapp.lccode.utils.MmkvUtil

/**
 * 该项目配置信息//
 */
object BaseConfig {
    const val APPID_WEIXIN = ""
    val versions: ArrayList<AppArea> =
        arrayListOf(
            AppArea("0", "起步区", "http://58.59.6.130:24228"),
            AppArea("1", "莱芜区", "http://58.59.6.130:24231"),
            AppArea("2", "钢城区", "http://58.59.6.130:24232"),
            AppArea("3", "济南市", "http://58.59.6.130:24306"),
            AppArea("4", "济阳区", "http://58.59.6.130:24229"),
            AppArea("5", "长清区", "http://58.59.6.130:24230"),
            AppArea("6", "商河县", "http://58.59.6.130:23427")
        )
    val v = MmkvUtil.getInt("city_version", 6)
//    val v = 6
    const val isDebug = BuildConfig.BUILD_TYPE != "release"
    val ROOT_URL =
        if (!isDebug) {
            //"http://58.59.6.130:23427/"//商河
            versions[v].url
        } else {
//            "http://58.59.6.130:23803/"
            //  "http://58.59.6.130:23427/"//商河
            versions[v].url
        }

    //    const val ROOT_URL_IMG = "http://58.59.6.130:23427" //测试
    val ROOT_URL_IMG = versions[v].url //测试
    const val ROOT_URL2 = ""
    const val page_count = 20 //
    const val CANCEL_PRIVACY_SHOW = "CANCEL_PRIVACY_SHOW"
    val selectMaxImage = 20
    val MAX_DISTANCE = 2000//上报进度时距离工地距离
    val nais: ArrayList<Nai> =
        arrayListOf(Nai("1", "高德地图"), Nai("2", "百度地图"), Nai("3", "腾讯地图"))
    /**
     * E:\AndroidstudioElectric\android-studio\jbr\bin>keytool -v -list -keystore E:\wokerspace\dm_farmland\app\dm_farmland.jks
     * 密钥库类型: PKCS12
     * 密钥库提供方: SUN
     *
     * 您的密钥库包含 1 个条目
     *
     * 别名: dm_farmland
     * 创建日期: 2023年5月31日
     * 条目类型: PrivateKeyEntry
     * 证书链长度: 1
     * 证书[1]:
     * 所有者: C=CN, ST=sd, L=jinan, O=innobank, OU=innobank, CN=innobank
     * 发布者: C=CN, ST=sd, L=jinan, O=innobank, OU=innobank, CN=innobank
     * 序列号: 1
     * 生效时间: Wed May 31 16:20:52 CST 2023, 失效时间: Sun May 24 16:20:52 CST 2048
     * 证书指纹:
     * SHA1: 75:CA:56:E1:1A:16:2E:ED:6F:E1:49:96:16:64:6B:B2:74:7C:84:A4
     * SHA256: 87:04:F6:BD:9B:93:C7:F5:ED:14:FE:D3:CA:57:3B:D1:09:24:5A:B7:94:6B:2D:8C:7E:BA:75:6D:20:FF:A9:F3
     * 签名算法名称: SHA256withRSA
     * 主体公共密钥算法: 2048 位 RSA 密钥
     * 版本: 1
     *
     *
     * *******************************************
     */
    //https://github.com/LuckSiege/PictureSelector/blob/master/README_CN.md //图片选择
}